diff --git a/src/lib/random.cpp b/src/lib/random.cpp
index 1007172..f12dd1c 100644
--- a/src/lib/random.cpp
+++ b/src/lib/random.cpp
@@ -19,6 +19,7 @@
  ***************************************************************************/
 
 #include "random.h"
+#include <unistd.h>
 
 
 #if defined(Q_WS_X11) || defined(Q_WS_MAC)
